package com.liqw.auto.beanfactory;

import com.liqw.Constant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

// ======================== Bean工厂后处理器 ========================
@Slf4j
@Component
public class CustomBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
        System.out.println(Constant.getStepStr("CustomBeanFactoryPostProcessor.postProcessBeanFactory") + "CustomBeanFactoryPostProcessor - 修改Bean定义");
    }
}
